package controllers

import (
	"fmt"
	"io/ioutil"
	"os"

	beego "github.com/beego/beego/v2/server/web"
)

type FJFenYeController struct {
	beego.Controller
}

func (this *FJFenYeController) Get() {
	f, _ := os.Open("./static/dzj/" + this.Ctx.Input.Param(":splat"))
	defer f.Close()
	bytes, err := ioutil.ReadAll(f)
	this.Data["NeiRong"] = string(bytes)
	if err != nil {
		fmt.Println(err)
	}
	this.TplName = "fojingfenye.html"
}
